package com.itheima.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-08-03 
 */

@Setter
@Getter
@ToString
@Entity
@Table ( name ="t_role" )
public class Role  implements Serializable {

	private static final long serialVersionUID =  2833997647713999583L;

	/**
	 * 角色id
	 */
	@Id
   	@Column(name = "uid" )
	private String uid;

	/**
	 * 角色名
	 */
   	@Column(name = "role_name" )
	private String roleName;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * 状态
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 角色介绍
	 */
   	@Column(name = "summary" )
	private String summary;

	/**
	 * 角色管辖的菜单的UID
	 */
   	@Column(name = "category_menu_uids" )
	private String categoryMenuUids;

}
